<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<jsp:useBean id="date" class="java.util.Date" scope="page" />
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

<title>中山市美斯特实业有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<link href="system/plugins/validateMyForm/css/plugin.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="system/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="system/js/verify1.js"></script>
<script type="text/javascript" src="system/plugins/validateMyForm/js/jquery.validateMyForm.1.5.js"></script>
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
<script type="text/javascript" src="system/js/NewDatePicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="system/js/jquery.blockUI.js"></script>
<script type="text/javascript" language="javascript" src="system/js/json2.js"></script>
<script type="text/javascript">
	$(document).ready(
		function(){

			var radioChk=$("select[name='qrYjDm']").val();
			if (radioChk=="")
			{
				$("input[name='qrYjMc']").attr("disabled",true).val(' ');
				$("input[name='qrYjHm']").attr("disabled",true).val(' ');
			}
			var time=new Date();
			
			var month=time.getMonth() + 1;
			var date=time.getDate();
			var year=time.getYear();
			
			if(month<10) month="0"+month;
			if(date<10) date="0"+date;
			if(year<1000) year+=1900;
			$("input[name='djRq']").attr("value",year+"-"+month+"-"+date);
			
			$("#form1").validateMyForm(); 
			
		}
		
	);

</script>
</head>

<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 车船迁入</div>
	<div class="mainbody">
		<div class="operate_info">操作说明：带 * 号必填</div>
		<div class="table">
			<form id="form1" action="system/book/movein.do" method="post">
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td width="150" align="right">车主类别：</td>
						<td width="350">
							<mytag:List name="czlb" table="TDmCcsCzlb">xyBj='Y'</mytag:List>
							<select name="czlbDm" class="required" onchange="CZLBChange(this.value)">
								<option value="">--请选择--</option>
								<logic:iterate id="czlb_list" name="czlb">
										<option value="${czlb_list.czlbDm }">${czlb_list.czlbMc }</option>
								</logic:iterate>
 							</select>
							<span style="color:red">*</span>
						</td>
						<td width="150" align="right">登记状态：</td>
						<td><input name="djztDmXS" id="djztDmXS" readonly="readonly"  value="正常使用"/><input name="djztDm" id="djztDm" value="01" style="display:none"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">纳税人编码：</td>
						<td><input name="nsrbm" id="nsrbm" class="required" readonly="readonly" onblur="searchCarOwner('system/ajax/common_findCarOwner.do',this);"/> <span style="color:red">*</span></td>
						<td align="right">车船登记号：</td>
						<td><input name="ccdjh" id="ccdjh" readonly="readonly" value="<mytag:sequence key="ccdjxx_seq" />"/></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车主名称：</td>
						<td><input name="czMc" id="czMc" readonly="readonly" class="required"/> <span style="color:red">*</span></td>
						<td align="right">身份证号码：</td>
						<td><input name="sfzhm" id="sfzhm" class="required" disabled="disabled" value=" "  onblur="checkID(this)"/> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">地址：</td>
						<td><input name="czDz" id="czDz" class="required" readonly="readonly"/> <span style="color:red">*</span></td>
						<td align="right">电话：</td>
						<td><input name="czDh" id="czDh" class="required" readonly="readonly" onfocus="tip(this,divProvince)" onblur="checkPM(this);hidetip(divProvince)"/> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">车船牌照号码：</td>
						<td>粤T-<input name="ccpzh" id="ccpzh" class="required" onkeyup="uptocase(this)" onblur="verifyCarNo('system/ajax/common_findCarNo.do',this,jjcclxDm,ccdjh)"/> <span style="color:red">*</span></td>
						<td align="right">车船类型：</td>
						<td>
							<mytag:List name="jjclx" table="TDmCcsJjcclx"></mytag:List>
							<select name="jjcclxDm" onblur="" onchange="searchCarInfo('system/ajax/common_findCarInfo.do',this);verifyCarNo('system/ajax/common_findCarNo.do',ccpzh,this,ccdjh)" class="required">
								<option value="">--请选择--</option>
								<logic:iterate id="jjclx_list" name="jjclx">
									<c:if test="${jjclx_list.xyBj=='Y' }">
										<option value="${jjclx_list.jjcclxDm }">${jjclx_list.jjcclxMc }</option>
									</c:if>
								</logic:iterate>
							</select> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">发动机号：</td>
						<td><input name="fdjh" id="fdjh" class="required" /> <span style="color:red">*</span></td>
						<td align="right">车架号：</td>
						<td><input name="cjh" id="cjh" class="required"/> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">厂牌型号：</td>
						<td><input name="cpxh" id="cpxh" class="required"/> <span style="color:red">*</span></td>
						<td align="right">购置时间：</td>
						<td><input class="required" readonly="readonly" name="gzRq" id="gzRq" onFocus="WdatePicker( { onpicked:function(){$(this).next().fadeOut(200);},maxDate:'<fmt:formatDate value="${date }" type="date" pattern="yyyy-MM-dd"/>'})" /> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">核定载重量（吨）：</td>
						<td><input name="hdzzl" id="hdzzl" class="required" readonly="readonly" onkeyup="onlynum(this)" onblur="CheckValue(this)"/> <span style="color:red">*</span></td>
						<td align="right">核定载客（人）：</td>
						<td><input name="hdzkl" id="hdzkl" class="required" readonly="readonly" onkeyup="onlydigit(this,6)" onblur="CheckValue(this)"/> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">整备质量（吨）：</td>
						<td><input name="zbzl" id="zbzl" class="required" readonly="readonly" onkeyup="onlynum(this)" onblur="CheckValue(this)"/> <span style="color:red">*</span></td>
						<td align="right">排气量（升）：</td>
						<td><input name="pql" id="pql" class="required" readonly="readonly" onkeyup="onlynum(this)" onblur="pointonlast(this)"/> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">登记日期：</td>
						<td><input readonly="readonly" name="djRq" id="djRq" /></td>
						<td align="right">行驶证发证日期：</td>
						<td><input class="required" readonly="readonly" name="fzRq" id="fzRq" onFocus="WdatePicker( { onpicked:function(){$(this).next().fadeOut(200);},maxDate:'<fmt:formatDate value="${date }" type="date" pattern="yyyy-MM-dd"/>'})" /> <span style="color:red">*</span></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">申报起始年月：</td>
						<td colspan="4"><input name="sbqsny" id="sbqsny" readonly="readonly" /></td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td colspan="5"></td>

					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">迁入时间：</td>
						<td colspan="3"><input id="qrRq" name="qrRq" readonly="readonly" class="required" id="qrRq" onFocus="WdatePicker( { onpicked:function(){$(this).next().fadeOut(200);timechange();},maxDate:'<fmt:formatDate value="${date }" dateStyle="medium"/>'})" /> <span style="color:red">*</span></td>
					</tr>
					
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">迁入依据：</td>
						<td width="350">
						<mytag:List name="qryj" table="TDmCcsQryj"></mytag:List>
						<select name="qrYjDm" onchange="chkYjSelect(this)" class="required">
							<option value="">--请选择--</option>
							<logic:iterate id="qryj_list" name="qryj">
									<c:if test="${qryj_list.xyBj=='Y' }">
										<option value="${qryj_list.qryjDm }">${qryj_list.qryjMc }</option>
									</c:if>
							</logic:iterate>
						</select><input name="qrYjMc" id="qrYjMc" class="required"/> <span style="color:red">*</span><input name="ywlxDm" id="ywlxDm" value="02" style="display:none"/></td>
						<td align="right">证明号码：</td>
						<td><input name="qrYjHm" id="qrYjHm" class="required" onblur="havepro(this)" /> <span style="color:red">*</span></td>
		
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">备注：</td>
						<td colspan="3" width="300"><textarea name="bz" id="bz" cols="50" rows="3"></textarea></td>
					</tr>
					<tr>
						<td colspan="4" class="form_button" style="padding-top:10px;">
							<input type="submit" value="保存" onclick="return timechange()"/>
							<input type="button" value="返回" onClick="location.href=''"/>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
<div id="divProvince" name="divProvince" style="display:none; position:absolute;width:260px;background-color:#BFEBEE; border:1px solid #BEC0BF;padding:5px;font-size:12px;">  
        电话格式 ：<br/>
        手机：18,15,13开头 + 9位。<br/>
        固话：区号-电话。 例 ： 0760-88888888
</div>
</body>
</html>
